using System;
using System.Collections.Generic;
using System.Text;

namespace FactoryPattern
{
    interface ILeiFengFactory
    {
        LeiFeng CreateLeiFeng();
    }

    class UndergraduateFactory : ILeiFengFactory
    {
        public LeiFeng CreateLeiFeng()
        {
            return new Undergraduate();
        }
    }

    class VolunteerFactory:ILeiFengFactory
    {
        public LeiFeng CreateLeiFeng()
        {
            return new Volunteer();
        }
    }
}
